package com.yksj.healthtalk.utils;


public class NotificationUtils {
	
	/*public static void onNewMesgsNotification(String content){
		HTalkApplication app = HTalkApplication.getHTalkApplication();
		Intent intent = new Intent(app,ChatLatelyListActivity.class);
		intent.putExtra("notifi",true);
		intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
		PendingIntent pendingIntent = PendingIntent.getActivity(app, 0, intent, PendingIntent.FLAG_UPDATE_CURRENT);
		NotificationCompat.Builder builder = new NotificationCompat.Builder(app)
			.setAutoCancel(true)
			.setContentIntent(pendingIntent)
			.setWhen(System.currentTimeMillis())
			.setAutoCancel(true)
			.setSmallIcon(R.drawable.ic_launcher)
			.setDefaults(Notification.DEFAULT_SOUND|Notification.DEFAULT_LIGHTS)
			.setContentText(content)
			.setContentTitle("壹健康");
		NotificationManager mNotificationManager = (NotificationManager)app.getSystemService(Context.NOTIFICATION_SERVICE);
		mNotificationManager.notify(1,builder.build());
	}
	
	public static void onLogoutNotification(){
		HTalkApplication app = HTalkApplication.getHTalkApplication();
		Intent intent = new Intent(app,MainTabUI.class);
		intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
		PendingIntent pendingIntent = PendingIntent.getActivity(app, 0, intent, PendingIntent.FLAG_UPDATE_CURRENT);
		NotificationCompat.Builder builder = new NotificationCompat.Builder(app)
			.setAutoCancel(true)
			.setContentIntent(pendingIntent)
			.setWhen(System.currentTimeMillis())
			.setAutoCancel(true)
			.setSmallIcon(R.drawable.ic_launcher)
			.setDefaults(Notification.DEFAULT_SOUND|Notification.DEFAULT_LIGHTS)
			.setContentText("您的账号在别处登陆")
			.setContentTitle("壹健康");
		NotificationManager mNotificationManager = (NotificationManager)app.getSystemService(Context.NOTIFICATION_SERVICE);
		mNotificationManager.notify(1,builder.build());
	}
	
	public static void onCancelAll(){
		HTalkApplication app = HTalkApplication.getHTalkApplication();
		NotificationManager mNotificationManager = (NotificationManager)app.getSystemService(Context.NOTIFICATION_SERVICE);
		mNotificationManager.cancelAll();
	}*/
}
